import Vue from 'vue'
import Vuex from 'vuex'
import createPersistedState from 'vuex-persistedstate'
Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    lat:'',
    lng:'',
    token:0,
    pay:''
  },
    getters: {
  },
  mutations: {
    setLat(state,lat){
      state.lat = lat
    },
    setPay(state,lat){
      state.pay = lat
    },
    setLng(state,lng){
      state.lng = lng
    },
    setToken(state,token){
      state.token = token
    },
  },
  actions: {
  },
  plugins: [
    createPersistedState({storage: window.localStorage})
  ],
  modules: {
  }
})
